package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc CopywritingDto
 * @使用场景
 */
@Data
public class CopywritingDto extends BaseDto implements Serializable {

  /**
   * 大屏文案标识
   */
  @ApiModelProperty("大屏文案标识")
  private String largeScreenCopywritingCode;

  /**
   * 大屏文案名称
   */
  @ApiModelProperty("大屏文案名称")
  private String largeScreenCopywritingName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    CopywritingDto that = (CopywritingDto) o;
    return (
      largeScreenCopywritingCode == that.largeScreenCopywritingCode &&
      largeScreenCopywritingName == that.largeScreenCopywritingName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      largeScreenCopywritingCode,
      largeScreenCopywritingName
    );
  }

}
